// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import Vuex from 'vuex';
import App from './App'
import Element from 'element-ui'
import VueRouter from 'vue-router';
import VueResource from 'vue-resource'
import 'element-ui/lib/theme-default/index.css'
import routes from './routes';
import store from './store/store';

Vue.use(Element);
Vue.use(VueRouter);
Vue.use(Vuex);
Vue.use(VueResource)

const router = new VueRouter({
    routes
});

/* eslint-disable no-new */
new Vue({
    el: '#app',
    render: h => h(App),
    router
})